package com.team7.happycommunity.personcentor.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@Configuration
//@EnableSwagger2//启动
public class Swagger2Config {

    @Bean
    public Docket decket(){
        return new Docket(DocumentationType.SWAGGER_2);
    }

}
